package org.grow.commodity.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.grow.basic.dto.BatchIntentionDto;
import org.grow.commodity.entity.Storage;
import org.grow.commodity.entity.StorageQueryCondition;

import java.util.List;

/**
 * @Author: xwg
 * @CreateDate: 21-8-6
 */

@Mapper
public interface StorageDao extends BaseMapper<Storage> {
//    List<Storage> dynamicQuery(@Param("qc") StorageQueryCondition storageQueryCondition);
    IPage<Storage> dynamicQuery(IPage<Storage> iPage,@Param("qc") StorageQueryCondition storageQueryCondition);

    int updateIntentionStock(@Param("batch") BatchIntentionDto batchIntentionDto);
}
